#include<iostream>
#include<sys/types.h>
#include<signal.h>

//./mykill signumber pid
int main(int argc,char *argv[])
{
    if(argc != 3)
    {
        std::cout << "./mykill signumber pid" <<std::endl;
    }
    int signum = std::stoi(argv[1]);
    pid_t target = std::stoi(argv[2]);
    int n = kill(target,signum);
    if(n == 0)
    {
        std::cout<< "send"<<signum << "to "<<target <<"success"<<std::endl;
    }
    return 0;
}